/* Copyright (c) 2013 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

.filter-control {
  -webkit-user-select: none;
  display: -webkit-box;
  position: relative;
}

.filter-control .hit-count-label {
  opacity: 0.25;
  pointer-events: none;
  position: absolute;
  right: 0.5ex;
  text-align: right;
  top: 1px;
  width: 30ex;
  z-index: 1;
}

.filter-control input {
  -webkit-user-select: auto;
  background-color: #f8f8f8;
  border: 1px solid rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  height: 19px;
  margin-bottom: 1px;
  margin-left: 0;
  margin-right: 0;
  margin-top: 1px;
  padding: 0;
  width: 30ex;
}

.filter-control input:focus {
  background-color: white;
}

.filter-control input + .hit-count-label {
  display: none;
}

.filter-control input:focus + .hit-count-label {
  display: inline;
}